package com.wendy.admin.errorcode;

import com.wendy.common.core.constant.HttpStatus;
import com.wendy.common.core.errcode.base.BaseError;

public class SysRoleError extends BaseError {


    public static SysRoleError ADD_ERROR = new SysRoleError("新增角色%s失败，角色名称已存在", HttpStatus.NOT_FOUND);
    public static SysRoleError ADD_ROLE_ERROR = new SysRoleError("新增角色%s失败，角色权限已存在", HttpStatus.NOT_FOUND);
    public static SysRoleError EDIT_ERROR = new SysRoleError("修改角色%s失败，角色名称已存在", HttpStatus.NOT_FOUND);
    public static SysRoleError EDIT_ROLE_ERROR = new SysRoleError("修改角色%s失败，角色权限已存在", HttpStatus.NOT_FOUND);
    public SysRoleError() {
        super();
    }
    public SysRoleError(String msg, Integer code) {
        super(msg, code);
    }
}
